---
title: Media Popover
description: Access media-related features and options through a popover.
component: true
docs:
  - route: /docs/media
    title: Media
  - route: /docs/components/button
    title: Button
  - route: /docs/components/input
    title: Input
  - route: /docs/components/popover
    title: Popover
  - route: /docs/components/separator
    title: Separator
---

## Installation

<Tabs defaultValue="cli">

<TabsList>
<TabsTrigger value="cli">CLI</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx @udecode/plate-ui@latest add media-popover
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>

Install the following dependencies:

- [Media](/docs/media)
- [Button](/docs/components/button)
- [Input](/docs/components/input)
- [Popover](/docs/components/popover)
- [Separator](/docs/components/separator)

</Step>

<Step>

Copy and paste the following code into your project.

</Step>

<ComponentSource name="media-popover" />

<Step>

Update the import paths to match your project setup.

</Step>

</Steps>

</TabsContent>

</Tabs>

## Examples

<ComponentPreview name="playground-demo" id="media" />

<ComponentSource name="image-element" />
<ComponentSource name="media-embed-element" />
